<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Which is Better</title>
        <link type="text/css" rel="stylesheet" href="<?php base_url(); ?>/final/wib.css" />
    </head>
    <body>
        <div id="header">

        <form action="" method="post">
        <table>
            <tr>
                <td rowspan="3" style="width: 460px"><h1>Which is Better</h1></td>
                <td><label>User Name</label></td>
                <td><input type="text" name="name" value="" /></td>
            </tr>
            <tr>
                <td><label>Password</label></td>
                <td><input type="password" name="pass" value="" /></td>
            </tr>
            <tr>
                <td><a href="<?php base_url(); ?>/final/index.php/index/register">Register</a></td>
                <td><button type="submit">Submit</button></td>
            </tr>
        </table>
        </form>
        </div>

        <div id="navcontainer">
            <ul id="navlist">
                <li id="active" />
                <li><a href="<?php base_url(); ?>/final/index.php/index/main">Home</a></li>
                <li><a href="<?php base_url(); ?>/final/index.php/index/user_page">User Page</a></li>
                <li><a href="<?php base_url(); ?>/final/index.php/index/result_page">Winners</a></li>
            </ul>
        </div>

        <div id="wrapper">

        <?php if(isset($data['error_msg']))
            echo $data['error_msg'];
            ?>
        
        <form action="" method="post">
        <table>
            <tr>
                <?php foreach($image as $row): ?>
                <td><img src="<?php base_url(); ?>/final/image/<?php echo $row->Image; ?>" alt="<?php echo $row->Note; ?>" /></td>
                <?php endforeach; ?>
            </tr>
            <tr>
                <?php foreach($image as $row): ?>
                <td><input type="radio" value="<?php echo $row->IID; ?>" name="vote" /></td>
                <?php endforeach; ?>
            </tr>
        </table>
            <p><button type="submit" >Cast Vote</button></p>
        </form>
        </div>
        
    </body>
</html>
